package com.opal.reporforms.service;

import com.opal.domain.ReturnMessageData;
import com.opal.model.DataGridData;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface ThreeBomService {

    ReturnMessageData getPkFactoryService();

    /**
     * 根据code查询BdMaterial
     * @param code
     * @return
     */
    ReturnMessageData getBdMaterialByCodeService(String code);

    /**
     * 查询第一联(分页)
     * @param code
     * @return
     */
    DataGridData selectOneFormService(String pkorg, String code, DataGridData rmd);

    /**
     * 查询第一联(分页)
     * @param code
     * @return
     */
    DataGridData selectOneFormService(String pkorg, String code);

    /**
     * 查询第二联
     * @param code
     * @return
     */
    DataGridData selectTwoFormService(String pkorg, String code);

    /**
     * 查询第三联
     * @param code
     * @return
     */
    DataGridData selectThreeFormService(String pkorg, String code);

    ReturnMessageData printBomService(String[] BOMs, HttpServletRequest request, HttpServletResponse response);
}
